<template>
  <i class="icon" :class="[size,'ico-'+type]" :style="{'color':color}"></i>
</template>
<script>

  export default{
    name: 'icon',
    props: {
      type: {
        type: String,
        required: true
      },
      size: {
        type: String,
        default: 'normal'
      },
      color: {
        type: String,
        default: '#000000'
      }
    }
  }
</script>
<style>
  .icon {
    position: relative;
    z-index: 0;
    display: inline-block;
    border-radius: 4px;
    list-style: none;
    text-align: center;
    font-weight: normal;
    cursor: pointer;
  }

  .small {
    font-size: 12px;
  }

  .normal {
    font-size: 14px;
  }

  .large {
    font-size: 16px;
  }

</style>
